.native-tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: white;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid #eee;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.05);
  z-index: 1000; /* 添加高z-index */
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s ease;
  color: #666;
  padding: 4px 0;
}

.tab-item:active {
  opacity: 0.7;
  background-color: rgba(0, 0, 0, 0.02);
}

.tab-item.active {
  color: #1677ff;
  font-weight: 500;
}

.tab-icon {
  font-size: 24px;
  margin-bottom: 3px;
  line-height: 1;
}

.tab-title {
  font-size: 12px;
  transform: scale(0.9);
  line-height: 1;
  margin-top: 2px;
}

/* 适配 iPhone X 及以上机型的底部安全区域 */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .native-tab-bar {
    padding-bottom: env(safe-area-inset-bottom);
    height: calc(56px + env(safe-area-inset-bottom));
  }
}
